package com.bristua.tencent.live.sdk.network;

import android.support.annotation.NonNull;

import com.bristua.tencent.live.sdk.network.bean.RoomPushInfo;
import com.bristua.tencent.live.sdk.network.callback.OnResponseCallback;

/**
 * pusher
 * @author richsjeson
 */
public interface IPusher {
    /**
     * 获取push的Url地址
     * @param pUserId  rtc_room 的userid
     * @param pRoomId  room的ID
     * @param pCallback
     */
    void getPushUrl(@NonNull String pUserId, @NonNull String pRoomId,@NonNull  OnResponseCallback pCallback);

    /**
     * 添加pusher信息
     * @param pInfo push的信息
     * @param pCallback
     */
    void add(@NonNull RoomPushInfo pInfo,@NonNull  OnResponseCallback pCallback);

    /**
     * 添加pusher信息
     * @param pRoomId roomid 房间的ID
     * @param pUserId push 的rtc_user_id
     * @param pCallback
     */
    void del(@NonNull String pRoomId,@NonNull String pUserId,@NonNull  OnResponseCallback pCallback);
}
